import { reactive, ref } from "vue";

export default function InitHook() {
  const formState = reactive<Partial<DataDictManagement.AddForm>>({
    name: undefined,
    code: undefined,
    remark: undefined,
    status: 1,
    itemList: [
      {
        name: undefined,
        code: undefined,
        status: 1
      }
    ]
  });
  const loading = ref<boolean>(false);
  const formDataRef = ref<any>(null);
  return {
    formState,
    formDataRef,
    loading
  };
}
